home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: cnn.nas.nasa.gov!eos!kozon
- From: kozon@eos.arc.nasa.gov (Tom Kozon)
- Subject: C++ doesn't work on g++ compiler -- what gives?
- Message-ID: <1996Feb6.235943.6395@eos.arc.nasa.gov>
- Organization: NASA Ames Research Center
- Distribution: usa
- Date: Tue, 6 Feb 1996 23:59:43 GMT
-
-
- Hello,
- I am currently having problems compiling C++ code using
- a g++ compiler on my DECstation 5100 running Ultrix v4.2.
-
- When I try to compile a sample "hello world" type of program
- (shown below), the following occurs (further below).
- Does anybody have any idea what is going on (or better yet,
- how I can fix this thing)?
- Thanks,
- Tom
- kozon@eos.arc.nasa.gov
-
- csh>
- csh> more simple_test.C
- #include <iostream.h>
- #include <stdio.h>
-
- void main()
- {
-
-
- printf("hello\n");
-
- exit(0);
-
- }
- csh>
- csh>
- csh> g++ simple_test.C
- /usr/local/lib/g++-include/streambuf.h: In method `int filebuf::do_flush()':
- In file included from /usr/local/lib/g++-include/iostream.h:25,
- from simple_test.C:1:
- /usr/local/lib/g++-include/streambuf.h:421: member `_pbase' is from private base class
- /usr/local/lib/g++-include/streambuf.h:421: member `_pptr' is from private base class
- /usr/local/lib/g++-include/streambuf.h:421: member `_pbase' is from private base class
- /usr/local/lib/gcc-lib/mips-dec-ultrix4.2/2.7.0/include/stdio.h: At top level:
- In file included from /usr/local/lib/g++-include/stdio.h:69,
- from simple_test.C:2:
- /usr/local/lib/gcc-lib/mips-dec-ultrix4.2/2.7.0/include/stdio.h:119: warning: abstract declarator used as declaration
- csh>
- csh>
-